package com.peter.springcloud.streamclient;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ApplicationContext;


@EnableDiscoveryClient
@SpringBootApplication
public class Application {
    public static void main( String[] args ) {
//        ConfigurableApplicationContext act = SpringApplication.run(Application.class, args);
        ApplicationContext act = SpringApplication.run(Application.class, args);
        act.getBean(Test.class);
    }
}
